$(document).ready(function() {
  var params = new URLSearchParams(window.location.search)
  var myParam = params.get('pid')
  var text = ''
  var img = ''
  var timestamp = '?t='+new Date().getTime();
  if (myParam) {
    switch (myParam) {
      case '1':
        text = '智能心电衣'
        img = 'p-d-1.png'+timestamp
        break;
    
      case '2':
        text = '心电图机e1202'
        img = 'p-d-2.png'+timestamp
        break;

      case '3':
        text = '智能心贴Mi-Rhythm'
        img = 'p-d-3.png'+timestamp
        break;

      case '4':
      text = '心电工作站ePCECG-12a'
      img = 'p-d-4.png'+timestamp
      break;

      case '5':
      text = '心电工作站系列'
      img = 'p-d-5.png'+timestamp
      break;

      case '6':
      text = '实时动态心电 G12plus'
      img = 'p-d-6.png'+timestamp
      break;

      case '7':
      text = '动态血压全系列'
      img = 'p-d-7.png'+timestamp
      break;

      case '8':
      text = '动态心电i12plus'
      img = 'p-d-8.png'+timestamp
      break;

      case '9':
      text = '18导心电图机 e1800plus'
      img = 'p-d-9.png'+timestamp
      break;
    }

    $('.p-name').text(text);
    $('#myImage').attr('src', 'img/'+img);
  }
})